/*************************************************************************
	> File Name: src/StringTest.java
	> Author: 
	> Mail: 
	> Created Time: 2019年09月17日 星期二 20时58分23秒
 ************************************************************************/

public class StringTest{
    //Test String Class
    public static void main(String []args){
         String phase1= "Where there is a will, ";
         String phase2 = "there is a way";
         String mutation1,mutation2,mutation3,mutation4;

         System.out.println("comparation between phase1 and phase2, the result is :"+phase1.compareTo(phase2));
         System.out.println("concat two strings, the result is:"+phase1.concat(phase2));
         System.out.println("Test Equal operation ,the result is:"+phase1.equals(phase2));
         System.out.println("Test replace operation, the result is:"+phase1.replace('e','E'));
         System.out.println("Test substring operation, the result is:"+phase1.substring(6,10));
         System.out.println("Test toLowerCase and toUpperCase operation, the results are:"+phase1.toUpperCase()+phase2.toLowerCase());


    }
}

